feat: integrate Project Genie continuous building#104
feat: integrate Project Genie continuous building#104Igor Holt (igor-holt) wants to merge 3 commits into
Conversation
- Added Project Genie-inspired prompts to mutations in `scripts/genesis.cjs` - Updated `generateEvolutionComponent` to conditionally render specific intrinsic React Three Fiber geometry and materials based on the directive, adhering to codebase limits on external material imports - Integrated `project-genie` application block to `ecosystem.config.cjs` using an absolute path to launch `scripts/genesis.cjs` with `GENESIS_LOOP` continuously - Added `writeJournal` wrapper function in `scripts/genesis.cjs` with try/catch fallback to prevent application crashes from `ENOENT` directory missing errors Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
yennefer | 1ce0265 | Commit Preview URL | Jun 15 2026, 07:47 AM |
There was a problem hiding this comment.
Code Review
This pull request adds a new PM2 process configuration for project-genie and refactors the genesis.cjs script to include a robust journal-writing helper with fallback logic, new mutation directives, and dynamic geometry/material generation based on the directive content. Feedback suggests improving portability by using a relative path in the PM2 configuration, enhancing cross-platform compatibility by handling EPERM errors on Windows, maintaining style consistency in the mutation prompts, and using a thin boxGeometry instead of planeGeometry to avoid orientation issues in Three.js.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| }, | ||
| { | ||
| name: 'project-genie', | ||
| script: '/home/yenn/scripts/genesis.cjs', |
There was a problem hiding this comment.
| try { | ||
| fs.appendFileSync(PATHS.journal, line); | ||
| } catch (e) { | ||
| if (e.code === 'ENOENT' || e.code === 'EACCES') { |
There was a problem hiding this comment.
| { type: "MUTATE", content: "an interactive landscape featuring a rugged alien terrain with reactive dust physics" }, | ||
| { type: "MUTATE", content: "a macro-scale makerspace workbench with a polished light-brown wood table" }, | ||
| { type: "MUTATE", content: "a photorealistic alpine meadow with wildflowers" } |
There was a problem hiding this comment.
The new mutation prompts are written as lowercase noun phrases, which is inconsistent with the existing prompts that use capitalized imperative verbs (e.g., 'Add...', 'Generate...', 'Build...'). Rephrasing them to match the existing style ensures consistency and may improve the predictability of the generation model.
{ type: "MUTATE", content: "Create an interactive landscape featuring a rugged alien terrain with reactive dust physics" },
{ type: "MUTATE", content: "Build a macro-scale makerspace workbench with a polished light-brown wood table" },
{ type: "MUTATE", content: "Generate a photorealistic alpine meadow with wildflowers" }
| const directiveLower = directive.toLowerCase(); | ||
|
|
||
| if (directiveLower.includes('landscape') || directiveLower.includes('terrain') || directiveLower.includes('meadow')) { | ||
| geometry = '<planeGeometry args={[10, 10, 32, 32]} />'; |
There was a problem hiding this comment.
In React Three Fiber / Three.js, a <planeGeometry> is oriented vertically (facing the Z-axis) by default. For landscapes, terrains, or meadows, this will appear as a vertical wall unless the parent mesh is rotated (e.g., rotation={[-Math.PI / 2, 0, 0]}). Since the generator template might not apply this rotation, using a thin <boxGeometry args={[10, 0.1, 10]} /> is a safer and more reliable way to represent a flat ground/landscape without requiring rotation.
geometry = '<boxGeometry args={[10, 0.1, 10]} />';
- Updated `main` entrypoint to `workers/index.mjs` to enforce ESM mode. - Updated `compatibility_date` to `2024-04-01`. - Updated the `[build]` command to run the frontend build in the correct directory (`yennefer-observatory`) and removed unsupported environment variables. - Updated `[assets]` mapping to `yennefer-observatory/dist`. - Removed unsupported `[placement]` block (`mode = "smart"`) causing CI failures. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
- Renamed `workers/index.js` to `workers/index.mjs` to correctly match the `wrangler.toml` entrypoint setting and enforce ES Modules, resolving the ongoing Cloudflare Workers deployment and CI build failures. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Integrating Google's Project Genie into Yennefer's continuous generation cycle by expanding the genesis prompt dictionary with Genie-inspired interactive 3D world prompts. The React Three Fiber procedural generation script was updated to match these prompts to standard 3D geometries and materials. This was connected to the core PM2 orchestrator to continuously generate these worlds, simulating live building.
Project Genie does not have an external API, so integration focuses on extending existing prompt-to-3D simulation capabilities with equivalent functionality, per repository guidelines. The code was further made more robust against directory file system errors.
PR created automatically by Jules for task 4082618492801658122 started by Igor Holt (@igor-holt)